/**
 * 
 */
package org.youisoft.summer.evaluator.function.service;

import org.youisoft.summer.evaluator.InvokeException;
import org.youisoft.summer.evaluator.context.CalContext;
import org.youisoft.summer.evaluator.function.AbstractFunction;
import org.youisoft.summer.evaluator.operator.Operator;
import org.youisoft.summer.evaluator.operator.base.MessageOperator;
import org.youisoft.summer.evaluator.operator.base.NullOperator;

/**
 * @author zijiang.jl
 *
 */
public class OutBoundFunction extends AbstractFunction{

	@Override
	protected boolean checkOperator(int index, Operator<?> operator) {
		return operator instanceof NullOperator;
	}
	
	

	@Override
	protected boolean checkAddendumOperator(Operator<?> operator) {
		return operator instanceof MessageOperator;
	}

	@Override
	public <C, R, P> Operator<?> doBracketInvoke(CalContext<C, R, P> context,
			Operator<?>... operator) throws InvokeException {
		System.out.println("in OutBoundFunction");
		return super.doBracketInvoke(context, operator);
	}
	
}
